package com.maiji.cloud.service;

import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.entities.community.ComPraise;
import com.maiji.cloud.request.BaseInputDto;
import com.maiji.cloud.request.IdInputDto;
import com.maiji.cloud.response.BaseOutPutDto;
import com.maiji.cloud.response.community.ComPraiseOutputDto;
import com.maiji.cloud.response.login.UserInfoResData;
import com.maiji.cloud.response.shopingmall.FinancialDetailsResData;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

public interface ComPraiseService extends IService<ComPraise> {

    /**
     * 动态点赞列表
     * @param inputDto
     * @return
     */
    public BaseOutPutDto<List<UserInfoResData>>praiseList(@RequestBody BaseInputDto<IdInputDto>inputDto);

    /**
     * 动态点赞
     * @param inputDto
     * @param maijiToken
     * @return
     */
    public BaseOutPutDto<FinancialDetailsResData> praise(@RequestBody BaseInputDto<IdInputDto> inputDto, @RequestHeader("maijiToken")String maijiToken);

    /**
     * 取消动态的点赞
     * @param inputDto
     * @param maijiToken
     * @return
     */

    public BaseOutPutDto<String> cancelPraise(@RequestBody BaseInputDto<IdInputDto> inputDto, @RequestHeader("maijiToken")String maijiToken);
}
